<?
class PageController extends BaseController{
    
    public function __construct(){
        parent::__construct();
        $this->seo_string = '<title>Fone Care - giới thiệu</title>
                             <meta name="description" content="Giới thiệu fonecare.vn" />
                             <meta property="og:site_name" content="Fone Care - giới thiệu" />
	                         <meta property="og:image" content="http://fonecare.vn/template/default/themes/img/logo.png" />
                        	 <meta property="og:type" content="news" />
                        	 <meta property="og:url" content="http://fonecare.vn/gioi-thieu.html" />
                        	 <meta property="og:title" content="Fone Care - giới thiệu" />
                        	 <meta property="fb:app_id" content="524593015322765" />
                        	 <meta property="fb:admins" content="100000472324543" />';  
    }
    
    public function GetAbout() {
        $db_query = new db_query('SELECT * FROM configuration WHERE con_type = "about" LIMIT 1');
        $res_about = mysql_fetch_assoc($db_query->result);
        $about = json_decode(base64_decode($res_about['con_value']),1);
        unset($db_query);
        
        $html = PageLayout::about(array('about'=>$about['content']));
        return $html;
    }
    public function GetFooter() {
        $db_query = new db_query('SELECT * FROM configuration WHERE con_type = "footer" LIMIT 1');
        $res_footer = mysql_fetch_assoc($db_query->result);
        $footer = json_decode(base64_decode($res_footer['con_value']),1);
        unset($db_query);
        
        $html = PageLayout::footer(array('footer'=>$footer['content']));
        return $html;
    }
}
?>